﻿namespace Joy.Erp.Ufida.Core
{
    public class U9ApiConfig
    {
        /// <summary>
        /// Api地址
        /// </summary>
        public string BaseUrl { get; set; }

        /// <summary>
        /// 客户端编码
        /// </summary>
        public string ClientId { get; set; }

        /// <summary>
        /// 客户端秘钥
        /// </summary>
        public string ClientSecret { get; set; }

        /// <summary>
        /// 企业编码
        /// </summary>
        public string EntCode { get; set; }

        /// <summary>
        /// 用户编码
        /// </summary>
        public string UserCode { get; set; }

        /// <summary>
        /// 组织编码
        /// </summary>
        public string OrgCode { get; set; }

        public override string ToString()
        {
            return $"{BaseUrl}|{ClientId}|{ClientSecret}|{EntCode}|{UserCode}|{OrgCode}";
        }
    }
}
